package T4;

public class Test4 {
    public static void main(String[] args) {
        Point p1 = new Point();
        Point p2 = new Point(0, 10);
        System.out.println(p1.getX() + " " + p1.getY() + " " + (int) p1.distance(p2));
        System.out.println(p1.toString());
        System.out.println("------------------");

        Circle c1 = new Circle();
        Circle c2 = new Circle(0, 0, 10);
        System.out.println(c1.getRadius() + ",(" + c1.getCenter().getX() + "," + c1.getCenter().getY() + ")");
        System.out.println((int) c1.area() + " " + (int) c1.perimeter() + " " + c1.relation(c2));
        System.out.println(c2.toString());
        System.out.println("----------------------");

        Point p5 = new Point();
        Point p6 = new Point(0, 0);
        System.out.println(p5.equals(p6));
        System.out.println("-------------");

        Point p7 = new Point();
        T2.Point p8 = new T2.Point(0, 0); //父类
        System.out.println(p7.equals(p8));

    }
}
